		<?php $routeName = sfContext::getInstance()->getRouting()->getCurrentRouteName() ?>
		<div id="sidebar" >
			<?php include_component('searcher', 'sideboxRechercheDirecte') ?>

			<?php include_partial('global/suggestionsSidebar') ?>
			<?php if ($routeName!='list_favorites'): ?>
				<?php include_component('searcher', 'sideboxFavorites') ?>
			<?php endif; ?>
			<?php include_component('searcher', 'sideboxVisited') ?>
		</div>	
	
		<div id="main">		

<div id="breadcrumbs"><?php echo link_to('Accueil', '@homepage') ?> > <?php echo link_to('Location', '@searcher') ?> >
<?php echo link_to($pager->getCurrent()->getZonas()->getLocalidades()->getLocalidad(), url_for('@list_location_village?slug='.ViviendaAlquiler::slugify($pager->getCurrent()->getZonas()->getLocalidades()->getSlug(), "_").'&id='.$pager->getCurrent()->getZonas()->getLocalidades()->getId())) ?> 
 > <?php echo $pager->getCurrent()->getZonas()->getZona() ?>

<div class="postSection">
<h1>Villas et appartements en location &agrave;
<?php echo $pager->getCurrent()->getZonas()->getZona()?>, <?php echo $pager->getCurrent()->getZonas()->getLocalidades()->getLocalidad()?>
</h1>
<?php if ($sf_params->get('page') == 1): ?>
<p>
</p>
<?php endif ?>
<blockquote>
<p><?php echo $pager->getCurrent()->getZonas()->getZonaDescFr() ?></p>
</blockquote>
<?php if ($sf_params->get('page') == 1): ?>
<p></p>
<?php endif ?>
</div>

<div id="nbResults"><?php echo $pager->getNbResults() ?> logements. <?php echo $pager->getFirstIndice() ?> - <?php echo $pager->getLastIndice() ?></div>
		<?php if ($pager->haveToPaginate()): ?>
		<div class="pagination-searcher-top-home">
<ul class="pagination-flickr">
  <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
    <li>
	<a 
	<?php if ($sf_params->get('page')==$page): ?>
		class='active'
	<?php endif ?>	
		href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/<?php echo $sf_request->getParameter('slug') ?>/<?php echo $sf_request->getParameter('id') ?>/<?php echo $page ?>">
    <?php echo $page ?></a>
	</li>
  <?php endforeach ?>
 </ul>
</div>
	<?php endif ?>	

	<div id="postResults">
	<?php foreach($pager->getResults() as $vivienda): ?>
		<div class="post">
		<div id="minimumPrice">
				</div>	
				<h1><?php echo link_to(ucwords(ViviendaAlquiler::getSlugVivienda($vivienda->getApartCasa()))." ".ucwords($vivienda->getNombre()), 'location_show', $vivienda) ?></h1>
				<?php if ($vivienda->getFirstFoto() != "" && $vivienda->getGaleria()): ?>
				<p><?php echo link_to(image_tag(sfConfig::get('app_static_domain_fotos').$vivienda->getUsuarioId().'/'.$vivienda->getId().'/thumbs/'.$vivienda->getFirstFoto(), 'class=float-left width=100 height=75 alt='.ucwords($vivienda->getSlug()).' '.$vivienda->getNombre()), 'location_show', $vivienda) ?></p>
				<?php else: ?>
				<p><?php echo link_to(image_tag('/fotos/oficina1.jpg', 'class=float-left width=100 height=75 alt='.ucwords($vivienda->getSlug()).' '.$vivienda->getSlug()), 'location_show', $vivienda) ?></p>
				<?php endif; ?>
				<p><?php if(isset($arrViviendasPrecios[$vivienda->getNombre()]))echo $arrViviendasPrecios[$vivienda->getNombre()];?></p>
				<?php include_component('location', 'viviendaDescription', array('vivienda'=>$vivienda)) ?>
				<p><?php echo $vivienda->getDesc_fr_red() ?></p>
				<p class="post-footer"><?php include_component('location', 'viviendaFeatures', array('vivienda'=>$vivienda)) ?></p>
		</div>
			<?php endforeach ?>		
	</div>					
	<?php if ($pager->haveToPaginate()): ?>
		<div class="pagination-searcher-bottom-home">
	<ul class="pagination-flickr">
  <?php $links = $pager->getLinks(); foreach ($links as $page): ?>
    <li>
	<a 
	<?php if ($sf_params->get('page')==$page): ?>
		class='active'
	<?php endif ?>	
		href="<?php echo url_for($sf_context->getInstance()->getRouting()->getCurrentRouteName()) ?>/<?php echo $sf_request->getParameter('slug') ?>/<?php echo $page ?>">
    <?php echo $page ?></a>
	</li>
  <?php endforeach ?>
 </ul>
	<?php endif ?>	
</div>
</div>